package kr.or.kead.ui.menu;

import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;

import javax.swing.Action;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JPanel;

import kr.or.kead.ui.list.AbsTablelist;
import kr.or.kead.ui.list.BookList;

public class MenuMgn extends JMenuBar {
	private JFrame frame;
	private Container contentPane;
	private AbsTablelist listView;	
//	private JPanel mainPanel;
	public MenuMgn(JFrame frame) {
		this.frame = frame;
		this.frame.setBounds(100, 100, 600, 400);		
		this.contentPane = frame.getContentPane();
		init();
		this.frame.setJMenuBar(this);
//		mainPanel = new JPanel();
		
									
		contentPane.validate();
	}
	
	private void init() {
		BookMenu bookMenu = new BookMenu(frame, (int)frame.getSize().getHeight());
		BookIOMenu bookIOMenu = new BookIOMenu(frame, (int)frame.getSize().getHeight());
		StatisticsMenu statisticsMenu = new StatisticsMenu(frame, (int)frame.getSize().getHeight());
		add(bookMenu);
		add(bookIOMenu);
		add(statisticsMenu);
		
		
	}
}
